package com.cy.device.model;

/**
 * 事件上报
 *
 * @author: jiangwang
 * @created: 2023/10/23 15:07
 */
public class EventReport {

    private String id;

    private Long timestamp;
    /**
     * 开门事件,1:开门
     */
    private Integer door;

    /**
     * 进水事件，1：进水
     */
    private Integer water;

    /**
     * 烟感事件，1：有烟
     */
    private Integer smoke;

    /**
     * 主电源VCC无电，1：掉电
     */
    private Integer powerdown;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public Integer getDoor() {
        return door;
    }

    public void setDoor(Integer door) {
        this.door = door;
    }

    public Integer getWater() {
        return water;
    }

    public void setWater(Integer water) {
        this.water = water;
    }

    public Integer getSmoke() {
        return smoke;
    }

    public void setSmoke(Integer smoke) {
        this.smoke = smoke;
    }

    public Integer getPowerdown() {
        return powerdown;
    }

    public void setPowerdown(Integer powerdown) {
        this.powerdown = powerdown;
    }

    @Override
    public String toString() {
        return "EventReport{" +
                "id='" + id + '\'' +
                ", timestamp=" + timestamp +
                ", door=" + door +
                ", water=" + water +
                ", smoke=" + smoke +
                ", powerdown=" + powerdown +
                '}';
    }
}
